/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.calculator.calculator.Impl;

import za.ac.cput.calculator.calculator.Calculator;

/**
 *
 * @author boniface
 */
public class CalculatorImpl implements Calculator{

    @Override
    public String welcomeMessage() {
       return "Welcome";
    }

    @Override
    public int add(int a, int b) {
        return a+b;
    }

    @Override
    public int subtract(int a, int b) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public int divide(int a, int b) {
        return a/b;
    }

    @Override
    public int multiply(int a, int b) {
        int sum = 0;
        
        for (int i = 0; i < b; i++) {
            sum = sum+a; 
        }
        return sum;
    }

    @Override
    public int run() {
        throw new UnsupportedOperationException("Not supported yet.");
    }
    
}
